package kz.pompei.ifacer.model;

public enum PaintKind {
  NORMAL, SEL, OVER, SEL_OVER, MOVING;
  
  public static PaintKind byState(boolean over, boolean selected) {
    if (over && selected) return SEL_OVER;
    if (over) return OVER;
    if (selected) return SEL;
    return NORMAL;
  }
  
  public boolean isSel() {
    return this == SEL || this == SEL_OVER;
  }
  
  public boolean isOver() {
    return this == OVER || this == SEL_OVER;
  }
}
